package com.flywen.generic;

public class GenericPageRequest extends GenericRequest {
    private static final long serialVersionUID = 7724934072742710956L;
    private Integer pageSize = 20;
    private Integer pageNum = 1;

    public GenericPageRequest() {
    }

    public Integer getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(Integer pageSize) {
        if (pageSize > 70000) {
            pageSize = 70000;
        }

        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return this.pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }
}